<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:mc="http://java.sun.com/jsf/composite/components">

<h:body>

	<ui:composition template="/templates/common.xhtml">

		<ui:define name="pageTitle">Register</ui:define>

	
		<ui:define name="main">
		
			<p align="left"
				style="color: fuchsia; font-size: large; font-style: inherit;">New
				User</p>
			<mc:newPerson name="name" name_="#{personBean.tempPerson.name}"
				lastname="lastname" lastname_="#{personBean.tempPerson.lastname}"
				email="email" email_="#{personBean.tempPerson.email}"
				password="password" password_="#{personBean.tempPerson.password}"
				password2="re_password"
				password2_="#{personBean.tempPerson.password}"
				shortAddress="shortaddress"
				shortAddress_="#{personBean.tempAddress.shortAddress}"
				country="country"
				country_="#{personBean.tempAddress.country.countryId}"
				selectCountry="select country"
				selectedCountries_="#{personBean.getAllCountries()}" city="city"
				city_="#{personBean.tempAddress.city.cityId}"
				selectCity="select city"
				selectedCities_="#{personBean.getAllCities()}" district="district"
				district_="#{personBean.tempAddress.district.districtId}"
				selectDistrict="select district"
				selectedDistricts_="#{personBean.getAllDistricts()}"
				submitButton="Submit" submitButtonAction="#{personBean.addPerson()}" />
		</ui:define>

	</ui:composition>

</h:body>
</html>